/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wso.bus;

import wso.dao.RoleDao;
import wso.dto.WsoRole;

/**
 *
 * @author Violet_Ink
 */
public class RoleBusImpl implements RoleBus{

    private RoleDao roleDao;

    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    public void deleteRole(String roleid) {
        roleDao.deleteRole(roleid);
    }

    public void saveorUpdateRole(WsoRole role) {
        roleDao.saveOrUpdateRole(role);
    }

    public WsoRole[] getAllRole() {
        return roleDao.getAllRole();
    }

    public WsoRole getRole(String roleid) {
        return roleDao.getRole(roleid);
    }
}
